package com;

import com.yuhang.demo.util.PostUtil;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class Producer {


    public static void main(String[] args) throws IOException {
        File file = new File("D:/a.txt");
        BufferedReader br = new BufferedReader(new FileReader(file));
        List<String> list = new ArrayList<String>();
        String lines = "";
        while((lines=br.readLine())!=null){
            String url = String.format("http://192.168.10.35:12300/producer/product/go2/%s",lines);
            List<NameValuePair> formparams = new ArrayList<NameValuePair>();
            String ret = PostUtil.httpPost(url, formparams);
            System.out.println(ret);
        }
    }
}
